import router from "./router";
import { getToken } from "./utils/auth";
router.beforeEach((to, from, next) => {
	if (to.path === "/login") {
		next()
	} else {
		if (!getToken()) {
			next('/login')
		} else {
			next()
		}
	}
})